package com.lbd.project.dao;

import com.lbd.project.bean.PaybackPlan;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wang on 2016/9/28.
 */
public interface PaybackPlanRepository extends PagingAndSortingRepository<PaybackPlan, Serializable>, JpaSpecificationExecutor<PaybackPlan> {
    /**
     * 根据id和状态查询还款计划
     *
     * @param id      id
     * @param strings 状态
     * @return
     */
    List<PaybackPlan> findByTargetIdAndStateInOrderByHkrqAsc(String id, String[] strings);
}
